package com.zjeav.lingjiao.ui.personCenter.view;

import com.zjeav.lingjiao.base.baseBean.Account;
import com.zjeav.lingjiao.base.baseBean.BaseView;
import com.zjeav.lingjiao.base.baseBean.Book;
import com.zjeav.lingjiao.base.baseBean.Metadata;
import com.zjeav.lingjiao.base.baseBean.Order;
import com.zjeav.lingjiao.base.baseBean.Result;

import java.util.ArrayList;

public interface PersonInfoContract {
    interface View extends BaseView {
        void showPersonInfo(Account account);
        void showUpdate(Result result,int type);
        void showError(Throwable throwable);
    }
    interface UpdateView extends BaseView{
        void showUpdate(Result result,int type);
        void showError(Throwable throwable ,String message);
    }

    interface OrderView extends BaseView {
        void showOrders(ArrayList<Order> orders);

        void showError(Throwable throwable);
    }

    interface FavoriteView extends BaseView {
        void showFavorites(ArrayList<Metadata> books);

        void showError(Throwable throwable);
    }

}
